<?php
/**
 * Created by PhpStorm.
 * User: zhanghua
 * Date: 2018/9/21
 * Time: 19:16
 */

namespace app\dlc\validate;

use think\Validate;

class LoginValidate extends Validate
{
    protected $rule =   [
        'username'  => 'require|max:25',
        'password'   => 'require',
    ];

    protected $message  =   [
        'username.require' => '用户名必须存在',
        'password.require' => '密码不能为空',
        'username.max'     => '名称最多不能超过25个字符',
    ];
}